From 9855e33f0b613cc7ed8828bfc3a24d15821456db Mon Sep 17 00:00:00 2001
From: Miqdad <ahmadmiqdad27@gmail.com>
Date: Tue, 18 Nov 2025 15:22:07 +0700
Subject: <Miqdad> balikin sitemap dan benerin canonical brand

---
 src/pages/shop/brands/[slug].jsx | 49 ++++++++++++++++++++++++++--------------
 1 file changed, 32 insertions(+), 17 deletions(-)

(limited to 'src/pages/shop/brands/[slug].jsx')

diff --git a/src/pages/shop/brands/[slug].jsx b/src/pages/shop/brands/[slug].jsx
index ed6724ea..c5b3eaac 100644
--- a/src/pages/shop/brands/[slug].jsx
+++ b/src/pages/shop/brands/[slug].jsx
@@ -1,30 +1,34 @@
-import dynamic from 'next/dynamic'
-import { getIdFromSlug, getNameFromSlug } from '@/core/utils/slug'
-import { useRouter } from 'next/router'
-import _ from 'lodash'
-import Seo from '@/core/components/Seo'
-import Breadcrumb from '@/lib/brand/components/Breadcrumb'
-import useBrand from '@/lib/brand/hooks/useBrand'
+import dynamic from 'next/dynamic';
+import { getIdFromSlug, getNameFromSlug } from '@/core/utils/slug';
+import { useRouter } from 'next/router';
+import _ from 'lodash';
+import Seo from '@/core/components/Seo';
+import Breadcrumb from '@/lib/brand/components/Breadcrumb';
+import useBrand from '@/lib/brand/hooks/useBrand';
 import PageNotFound from '@/pages/404';
 
-const BasicLayout = dynamic(() => import('@/core/components/layouts/BasicLayout'))
-const ProductSearch = dynamic(() => import('@/lib/product/components/ProductSearch'))
-const Brand = dynamic(() => import('@/lib/brand/components/Brand'))
+const BasicLayout = dynamic(() =>
+  import('@/core/components/layouts/BasicLayout')
+);
+const ProductSearch = dynamic(() =>
+  import('@/lib/product/components/ProductSearch')
+);
+const Brand = dynamic(() => import('@/lib/brand/components/Brand'));
 
 export default function BrandDetail() {
-  const router = useRouter()
-  const { slug = '' } = router.query
+  const router = useRouter();
+  const { slug = '' } = router.query;
 
-  const brandName = getNameFromSlug(slug)
-  const id = getIdFromSlug(slug)
-  const {brand} = useBrand({id})
+  const brandName = getNameFromSlug(slug);
+  const id = getIdFromSlug(slug);
+  const { brand } = useBrand({ id });
   // if ( !brand.isLoading && _.isEmpty(brand.data)) {
   //   console.log('ini masuk pak')
   //   return <PageNotFound />;
   // }
   return (
     <BasicLayout>
-      <Seo
+      {/* <Seo
         title={`Jual Produk Resmi ${brandName} Indonesia | Indoteknik.com`}
         description='B2B Marketplace MRO &amp; Industri dengan Layanan Pembayaran Tempo, Faktur Pajak, Online Quotation, Garansi Resmi &amp; Harga Kompetitif'
         additionalMetaTags={[
@@ -33,6 +37,17 @@ export default function BrandDetail() {
             content: `Jual ${brandName}, beli ${brandName}, Distributor ${brandName} Indonesia, cari ${brandName}, produk ${brandName}, ${brandName} Indonesia, harga ${brandName}`
           }
         ]}
+      /> */}
+      <Seo
+        title={`Jual Produk Resmi ${brandName} Indonesia | Indoteknik.com`}
+        description='B2B Marketplace MRO &amp; Industri dengan Layanan Pembayaran Tempo, Faktur Pajak, Online Quotation, Garansi Resmi &amp; Harga Kompetitif'
+        additionalMetaTags={[
+          {
+            property: 'keywords',
+            content: `Jual ${brandName}, beli ${brandName}, Distributor ${brandName} Indonesia, cari ${brandName}, produk ${brandName}, ${brandName} Indonesia, harga ${brandName}`,
+          },
+        ]}
+        canonical={`${process.env.NEXT_PUBLIC_SELF_HOST}/shop/brands/${slug}`}
       />
 
       <Breadcrumb brandName={brandName} />
@@ -47,5 +62,5 @@ export default function BrandDetail() {
         />
       )}
     </BasicLayout>
-  )
+  );
 }
-- 
cgit v1.2.3

